<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>添加科室</title>
  <link href="/css/bootstrap.min.css" rel="stylesheet">
  <link href="/css/style1.css" rel="stylesheet">
  <link href="/css/style.css" rel="stylesheet">
</head>
<body>
<div th:insert="~{admin/header1}"></div>
<main id="main">
  <section class="breadcrumbs">
    <div class="container">
      <div class="d-flex justify-content-between align-items-center">
        <ol>
          <li><a href="#">首页</a></li>
          <li><a href="#">添加科室</a></li>
        </ol>
      </div>
    </div>
  </section>
  <section class="inner-page" >
    <div class="container">
      <div class="card">
        <div class="card-header">
          <h3 class="card-title">添加科室</h3>
        </div>
        <div class="card-body mt-3">
      <form th:action="@{/departments}" th:object="${department}" method="post" >
        <div class="mb-2 d-flex" >
          <div class="col-4 d-flex" >
            <label for="kNo" class="form-label col-4">科室编号:</label>
            <input type="text" id="kNo"  th:field="*{kNo}" class="form-control" required>
          </div>
          <div class="col-4 d-flex text-center">
            <label for="dName" class="form-label col-4">科室名称:</label>
            <input type="text" id="dName"  th:field="*{dName}" class="form-control" required>
          </div>
        <div class="col-4 d-flex text-center" >
          <label for="type" class="form-label col-4">科室类别:</label>
          <input type="text"id="type" th:field="*{type}" class="form-control" required>
        </div>
        </div>
        <div class="mb-3" >
          <label for="detail" class="form-label">详情描述:</label>
          <div class="col-12" > <textarea id="detail"  th:field="*{detail}" class="form-control col-12" rows="8"></textarea></div>
        </div>
        <div class="text-center" >
          <button type="submit" class=" btn btn1 ">保存</button>
        </div>
      </form>
        </div>
      </div>
    </div>
  </section>
</main>
</body>
</html>
